package com.his.controller;

import com.his.bean.DzmHisCareOrder;
import com.his.service.DzmHisCareOrderService;
import com.his.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DzmHisCareOrderController {
//    处方表（DzmHisCareOrderService）service接口
    @Autowired
    private DzmHisCareOrderService DHCOS;

    //    处方表（DzmHisCareOrderService）查询
    @RequestMapping("QueryDzmHisCareOrder")
    public Object QueryDzmHisCareOrder(DzmHisCareOrder dzmHisCareOrder){
        System.out.println("处方查询");
       List<DzmHisCareOrder> list= DHCOS.QueryDzmHisCareOrder(dzmHisCareOrder);
       return new ResponseResult(200,"处方查询成功",list);
    }

}
